<?php

class Application_Form_Laptop extends Application_Form_Computer
{
	public function __construct($options = null)
    {
        parent::__construct($options);
		$this->setName('laptop');
		
		
		$screensize = new Zend_Form_Element_Text('screensize');
		$screensize->setLabel('Screen size:')
		->setAttrib('placeholder', 'in "')
		->setFilters(array('StringTrim','StripTags'))
		->addValidator('float', true, array('locale' => 'fr_FR'));

		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')
		->setLabel('Add');

		$elements = array($screensize, $submit);
		$this->addElements($elements);

		$this->setDecorators( array( array('ViewScript', array('viewScript' => 'forms/loginform.phtml'))));
	}
}